/* ************************************************************************

   Copyright:

   License:

   Authors: SALMON Charles

************************************************************************ */

qx.Class.define("bip.services.UserService",
{
  extend : bip.services.AbstractService,
  
  construct : function(url, delegate)
  {
    this.base(arguments);
    this._store.bind("model", this, "user");
    
  },
  
  properties : {
    user : {
      nullable: true,
      event: "changeUser"
    }
  },
  

  members :
  {
    createUser : function(model) {
    	this._store.setUrl(null);
    	this._store.setPostModel(model);
    	this._store.setUrl("user/createUser");
    }
  }
});